﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ProductsList.aspx.cs" Inherits="IService.ProductsList" %>

<%@ Register Src="~/InfoControls/Pagination.ascx" TagName="Pagination" TagPrefix="suc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .text_img
        {
            float: left;
            width: 180px;
            height: 200px;
        }
        .text_img img
        {
            width: 150px;
            max-height: 200px;
        }
        .text_article
        {
            width: 600px;
            float: left;
            margin-left: 20px;
        }
        .productblock
        {
            width: 100%;
            min-height: 200px;
            padding-top: 20px;
            background-image: url(/images/text_bg.gif);
            background-attachment: scroll;
            background-repeat: repeat-x;
            background-position-x: center;
            background-position-y: top;
            background-color: transparent;
            float: left;
        }
        .clear
        {
            clear: both;
        }
        .text_article_title
        {
            font-family: Microsoft Yahei;
            font-size: 18px;
            font-weight: bold;
        }
        .text_article_content
        {
            margin-top: 10px;
            text-align: left;
        }
        .seprate
        {
            height: 20px;
            width: 100%;
        }
    </style>
    <script type="text/javascript">
        function viewcontent(newsid) {
            window.open("NewInfo.aspx?newsId=" + newsid, "", "width=800,height=510,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0");
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightMainContent" runat="server">
    <table id="subtree1" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
    <div class="mainContent" style="margin: auto 50px">
        <div class="rightContainer">
            <!-- InstanceBeginEditable name="mainContent" -->
            <div class="seprate">
            </div>
            <asp:Repeater ID="rptProductsList" runat="server">
                <ItemTemplate>
            <div class="productblock">
                <div class="text_img">
                    <a href="ProductInfo.aspx?productId=<%#Eval("Id")%>" target="_blank">
                        <img alt="" src="<%#Eval("Image")%>" width="150"
                            height="150"></a></div>
                <div class="text_article">
                    <div class="text_article_title">
                        <a href="ProductInfo.aspx?productId=<%#Eval("Id")%>" target="_blank"><%#Eval("Title")%></a></div>
                    <div class="text_article_content">
                        <p>
                            <%#GetShortProductsContent(Eval("Details").ToString())%>
                        </p>
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
            </ItemTemplate>
            </asp:Repeater>
            <p>
            </p>
            <!-- InstanceEndEditable -->
        </div>
    </div>
                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="6">
                            <img alt="" src="../Style/images/spacer.gif" width="1" height="1" />
                        </td>
                    </tr>
                    <tr>
                        <td height="33">
                            <suc:Pagination ID="Pagination" PageSize="12" runat="server">
                            </suc:Pagination>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
